<script setup lang="ts">
    import { toRefs } from 'vue';
    // 属性
    let props = defineProps({
        title: {
            type: String,
            default: null
        }
    });
    let { title } = toRefs(props);
</script>
<template>
    <div class="chat-header">
        <span>{{ title }}</span>
        <div class="chat-oper">
            <el-icon class="el-icon-close" @click="$emit('close')" style="cursor: pointer;"><Close /></el-icon>
        </div>
    </div>
</template>
<style lang="less" scoped>
    .chat-header {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 16px;
        font-weight: bolder;
        border-bottom: 1px solid rgba( 22,24,35 ,.06);
        & .chat-oper, span {
            margin: 10px;
        }
        & .chat-oper:hover {
            color: #50A6FF;
        }
    }
</style>